]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Always pass a default stylesheet when constructing the theme
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 10 May 2013 14:00:20 +0000 (16:00 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 10 May 2013 17:41:50 +0000 (19:41 +0200)
There is not always a clear distinction between code and style,
which is why the interface ends up being mostly unusable when we
end up without *any* style, for instance because the specified
application-stylesheet is corrupt.
Setting the default stylesheet in addition to the application-stylesheet
is no guarantee for non-default themes not messing up the interface, but
it should at least lower the risk ...

https://bugzilla.gnome.org/show_bug.cgi?id=700097

js/ui/main.js

index 7232deb8be260f02a6e4f5fcf848a396157cb0db..b4e4687c7d14c6ee636f20ae61ad5f109cffa90d 100644 (file)
@@ -446,7 +446,8 @@ function loadTheme() {
     if (_cssStylesheet != null)
         cssStylesheet = _cssStylesheet;
 
-    let theme = new St.Theme ({ application_stylesheet: cssStylesheet });
+    let theme = new St.Theme ({ application_stylesheet: cssStylesheet,
+                                default_stylesheet: _defaultCssStylesheet });
 
     if (previousTheme) {
         let customStylesheets = previousTheme.get_custom_stylesheets();